def remove_k_digits(num, k):
    # 删除K个数
    for i in range(0, k):
        has_cut = False
        for j in range(0, len(num) - 1):
            if num[j] > num[j + 1]:
                num = num[0:j] + num[j + 1:]
                has_cut = True
                break
        if not has_cut:
            num = num[0:len(num) - 1]
    for j in range(0, len(num) - 1):
        if num[0] != '0':
            break
        num = num[1:]
    if len(num) == 0:
        return '0'
    return num


def remove_k_digits_v2(num, k):
    new_length = len(num) - k
    stack = []
    for i in range(len(num)):
        c = num[i]
        while len(stack) > 0 and stack[len(stack) - 1] > c and k > 0:
            stack.pop()
            k -= 1
        if '0' == c and len(stack) == 0:
            new_length -= 1
            if new_length <= 0:
                return '0'
            continue
        stack.append(c)
    if new_length <= 0:
        return '0'
    return ''.join(stack)


# print(remove_k_digits('1593212', 3))
# print(remove_k_digits('30200', 1))
# print(remove_k_digits('10', 2))

# print(remove_k_digits_v2('17273823923834', 3))

separator = 1
while 0 == (6 & separator):
    separator <<= 1
    print(separator)
